package com.c78.fz.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@TableName(value ="td_waterman")
public class WaterMan {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("basic_salary")
    private Integer basicSalary;
    @TableField("deduct")
    private Double deduct;
    @TableField("image")
    private String image;

    @TableField(exist = false)
    private Integer count;
    @TableField(exist = false)
    private Double money;

    @TableField(exist = false)
    private List<Client> clients;
}
